import { IsNotEmpty, IsString } from 'class-validator';

export class RegisterDto {
  @IsNotEmpty() // 验证字段是否为空
  @IsString()
  name: string;

  @IsNotEmpty()
  @IsString()
  password: string;
}
